package Example12;
interface Animal{
    public String NAME ="牧羊犬";
    public void shout();
    public void info();
}
abstract class Action{
    public abstract void eat();
}
class Dog extends Action implements Animal{
    public void eat(){
        System.out.println("喜欢吃骨头");
    }
    public void shout() {
        System.out.println("汪汪······");
    }
    public void info() {
        System.out.println("名称："+NAME);
    }
}
public class Example12 {
    public static void main(String[] args) {
        Dog dog = new Dog();
        dog.info();
        dog.shout();
        dog.eat();
    }
}